# -*- coding: utf-8 -*-
# @Time : 2021/11/17 22:10
# @Author : Xiang Qian Xiang Qian
# @Email : qianxljp@126.com
# @File : mish.py
# @Project : hrrp_jt
import jittor

class Mish(jittor.nn.Module):

    def __init__(self):
        super().__init__()

    def execute(self, x):
        x = x * (jittor.tanh(jittor.nn.softplus(x)))
        return x
